//
//  FourColumnTableCell.m
//  OrgOnline
//
//  Created by kiko on 16/3/4.
//  Copyright © 2016年 kiko. All rights reserved.
//
#import "BlackLabel.h"
#import "BlackTwoLabel.h"
#import "FourColumnTableCell.h"

@implementation FourColumnTableCell


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
     
        if(self.tag==1){
            NSLog(@"333");
            _labelst=[[BlackLabel alloc] initWithFrame:CGRectMake(10, 12,170 , 8.5)];
            [self addSubview:_labelst];
            
            _labelcond=[[BlackLabel alloc] initWithFrame:CGRectMake(174, 12,40 , 8.5)];
            [self addSubview:_labelcond];
            
            _labelird=[[BlackLabel alloc] initWithFrame:CGRectMake(248, 12,40 , 8.5)];
            [self addSubview:_labelird];
            
            _labelrth=[[BlackLabel alloc] initWithFrame:CGRectMake(307, 12,40 , 8.5)];
            [self addSubview:_labelrth];
            
            
        }else{//初始化cell进入
            NSLog(@"4444");
            _labelst=[[BlackTwoLabel alloc] initWithFrame:CGRectMake(39, 12,170 , 8.5)];
            [self addSubview:_labelst];
            
            _labelcond=[[BlackTwoLabel  alloc] initWithFrame:CGRectMake(174, 12,40 , 8.5)];
            [self addSubview:_labelcond];
            
            _labelird=[[BlackTwoLabel  alloc] initWithFrame:CGRectMake(258, 12,40 , 8.5)];
            [self addSubview:_labelird];
            
            _labelrth=[[BlackTwoLabel  alloc] initWithFrame:CGRectMake(327, 12,40 , 8.5)];
            [self addSubview:_labelrth];
        }
        
        UIView *line=[[UIView alloc] initWithFrame:CGRectMake(0, 30.5,([UIScreen mainScreen].bounds.size.width)-20, 1)];
        line.backgroundColor=[UIColor colorWithRed:226.0f/255.0f green:226.0f/255.0f blue:226.0f/255.0f alpha:1];
        [self addSubview:line];
        
        
    }
    return self;
}


@end
